package com.tally.gateway.filter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: sy
 * @Date: 2020/12/21 13:26
 * @Description:
 */
@Component
public class LoginGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {
    @Autowired
    private LoginGatewayFilter loginGatewayFilter;

    @Override
    public GatewayFilter apply(Object config) {
        return loginGatewayFilter;
    }
}
